package system.security.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="se_authority_type")
@PrimaryKeyJoinColumn(name="id")
public class AuthorityType extends Resource {
	
	public AuthorityType() {
		super();
		resourceType = new ResourceType("AuthorityType");
	}

	protected ResourceType belongTo ;

	@ManyToOne( cascade = {CascadeType.PERSIST, CascadeType.MERGE})
	@JoinColumn(name="belong_to")
	public ResourceType getBelongTo() {
		return belongTo;
	}

	public void setBelongTo(ResourceType belongTo) {
		this.belongTo = belongTo;
	}

}
